import request from '@/api'

//用户注册
export function userRegister(data) {
    return request({
        url: '/api/v1/user/register',
        method: 'post',
        params: data
    })
}

//用户登录
export function userLogin(data) {
    return request({
        url: '/api/v1/user/login',
        method: 'post',
        params: data
    })
}

//获取排行数据
export function getrank(data) {
    return request({
        url: '/api/v1/user/get-ranking-navigation-board',
        method: 'get',
        params: data
    })
}

//获取博客文章数据和相关用户
export function getBlogEssayAndUser(data) {
    return request({
        url: '/api/v1/blog/get-blogssay-and-user',
        method: 'get',
        params: data
    })
}


